watchdog: bcm2835: Support setting reboot partition
authorNoralf Trønnes <noralf@tronnes.org>
Fri, 7 Oct 2016 14:50:59 +0000 (16:50 +0200)
committerRaspbian kernel package updater <root@raspbian.org>
Thu, 9 Mar 2017 17:50:51 +0000 (17:50 +0000)
commit29f639773978fb429316f7476238f484f4379c94
tree3adb01884eba488bc7c5f834ebfc5c41b69338c0
parent9ba63463e52572505f1b05bd77524123e338a154
watchdog: bcm2835: Support setting reboot partition

The Raspberry Pi firmware looks at the RSTS register to know which
partition to boot from. The reboot syscall command
LINUX_REBOOT_CMD_RESTART2 supports passing in a string argument.

Add support for passing in a partition number 0..63 to boot from.
Partition 63 is a special partiton indicating halt.
If the partition doesn't exist, the firmware falls back to partition 0.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
drivers/watchdog/bcm2835_wdt.c